package com.mao.factory.absttact.huawei;

import com.mao.factory.absttact.AbstractFactory;
import com.mao.factory.absttact.Cpu;
import com.mao.factory.absttact.MainBoard;
import com.mao.factory.absttact.Power;
import com.mao.factory.absttact.xiaomi.XiaomiCpu;
import com.mao.factory.absttact.xiaomi.XiaomiMainboard;
import com.mao.factory.absttact.xiaomi.XiaomiPower;

public class HuaweiFactory implements AbstractFactory {
    @Override
    public Cpu chooseCpu() {
        return new HuaweiCpu();
    }

    @Override
    public Power choosePower() {
        return new HuaweiPower();
    }

    @Override
    public MainBoard chooseMainboard() {
        return new HuaweiMainBoard();
    }
}
